import Vue from 'vue'
import Router from 'vue-router'
import goods from 'components/goods/goods'
import rating from 'components/rating/rating'
import seller from 'components/seller/seller'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/goods'
    },
    {
      path: '/goods',
      name: 'goods',
      component: goods
    }, {
      path: '/ratings',
      name: 'ratings',
      component: rating
    }, {
      path: '/sellers/:id',
      name: 'sellers',
      component: seller,
    }
  ]
})
